
#include"comm.hpp"
#include"log.hpp"
int main()
{
    //1. 打开管道文件
    int fd = open(ipcPath.c_str(), O_WRONLY);
    assert(fd != -1);


    string buffer;
    while(true)
    {
        getline(cin, buffer);
        write(fd, buffer.c_str(), buffer.size());
    }

    close(fd);
    return 0;
}